<div class="common-card-style member-card">
  {{ widgets.Avatar(member=member, avatar_class=avatar_class) }}
  <div class="small-title member-card-title {% if show_course_count %} font-weight-bold {% endif %}">
    {{ member.full_name }}
  </div>
  {% set course_count = member.get_authored_courses() | length %}
  {% if show_course_count and course_count > 0 %}
  {% set suffix = "Courses" if course_count > 1 else "Course" %}
  <div class="small-title">
    Created {{ course_count }} {{ suffix }}
  </div>
  {% endif %}
  <a class="stretched-link" href="{{ get_profile_url(member.username) }}"></a>
</div>
